﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common.Master" AutoEventWireup="true" EnableEventValidation="false"
    CodeBehind="AudioArchiveList.aspx.cs" Inherits="Web.Views.ArchiveManage.AudioArchiveList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../../Javascript/UserControls.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#btn_AddArchive").click(function () {
                //                openWindow("新增卷", "ArchiveEdit.aspx", "800", "600");
                var typeId = $("#ctl00_ContentPlaceHolder1_archiveTypeId").val();
                window.location = "ArchiveEdit.aspx?op=add&archiveType=" + typeId;
            });

            $("#ctl00_ContentPlaceHolder1_BtnFilter").click(function () {

                var tab = $('.easyui-tabs').tabs('getSelected');
                var tabtitle = tab.panel('options').title;

                return true;
            });

            $("#btnShowFilter").click(function () {
                if ($(this).val() == '展开过滤') {
                    //                    $('#searchdialog').show();
                    OpenDialog();
                    $(this).val('隐藏过滤');
                }
                else {
                    //$('#searchdialog').hide();
                    HideDialog();
                    $(this).val('展开过滤');
                }

            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="toolbar2">
        <button type="button" id="btn_AddArchive" class="sexybutton">
            <span><span><span class="add">新建件</span></span></span></button>
        <%--<button type="button" class="sexybutton">
            <span><span><span class="edit">著录项批修改</span></span></span></button>--%>
        <button type="button" class="sexybutton" id="btnTransfer" runat="server" onserverclick="btnTransfer_Click">
            <span><span><span class="transfer">归档移交</span></span></span></button>
        <asp:CheckBox runat="Server" ID="chkboxIsDepartmentReview" Text="本单位管理" />
        <button type="button" class="sexybutton" style=" display:none;">
            <span><span><span class="edit">更改类别</span></span></span></button>
                <button type="button" class="sexybutton" id="btnPrintArchiveMenu" runat="server"  onserverclick="btnPrintArchiveMenu_Click">
            <span><span><span class="disk">打印企业档案目录</span></span></span></button>
            <button type="button" class="sexybutton" id="btnPrintHandoverCatagory" runat="server"  onserverclick="btnPrintHandoverCatagory_Click" >
            <span><span><span class="disk">打印档案交接文据</span></span></span></button>
             <button type="button" class="sexybutton" id="btnPrintBoxCatagory" runat="server" style=" display:none;"
            onserverclick="bnPrintBoxCatagory_Click">
            <span><span><span class="disk">打印盒内目录</span></span></span></button>
        <button type="button" class="sexybutton" id="btnPrintBeikaoTable" runat="server"
            onserverclick="btnPrintBeikaoTable_Click">
            <span><span><span class="disk">打印备考表</span></span></span></button>
        <button type="button" class="sexybutton" id="btnShowFilter"  >展开过滤</button>
        <%--<button type="button" class="sexybutton"><span><span><span class="select">客户端数据录入</span></span></span></button>--%>
        <asp:HyperLink ID="AddArchiveBatch" runat="server" CssClass="add">客户端数据录入</asp:HyperLink>
    </div>
        <ep:searchControl id="sch" runat="server" SearchEvent="sch_SearchEvent"></ep:searchControl>
    <div id="tt" class="easyui-tabs" border="false">
        <div title="待移交条目">
            <div style="overflow: hidden;">
                <h3>
                    待移交条目</h3>
                <ep:EPGridView ID="gv_Archive" DataKeyNames="DATAID" runat="server" Width="100%"
                    ShowCheckBox="true" OnRowDataBound="gr_Archive_RowDataBound" OnRowEditing="gr_Archive_RowEditing"
                    OnRowDeleting="gv_Archive_RowDeleting">
                    <Columns>
                        <asp:BoundField DataField="DATAID" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Center" />
                        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="10%">
                            <ItemTemplate>
                            <asp:Button ID="btnEdit"  runat="server" Text="编辑" CssClass="btn" 
                                CommandName="edit" />
                                <asp:Button ID="btnDelete"  runat="server" Text="删除" CssClass="btn" 
                                OnClientClick="return confirm('确定要删除该档案?');"
                                CommandName="delete" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="临时序号" DataField="TEMPORDERNUM" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="提交人" DataField="CREATEUSERID" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="题名" DataField="TITLE" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" />
                        <asp:BoundField HeaderText="责任者" DataField="PUBLISHER" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="文件日期" DataField="PUBLISHTIME" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="false" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="正本数量" DataField="MAINBODYNUM" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="件数" DataField="FILENUM" HeaderStyle-Width="3%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="页数" DataField="PAGENUM" HeaderStyle-Width="3%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="密级" DataField="F_SECURITYTYPE" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" />
                    </Columns>
                </ep:EPGridView>
                <ep:AspNetPager SubmitButtonText=" GO " ID="pager" Height="26px"    Width="100%" CssClass="yahoo2" runat="server"
                    PageSize="10" LayoutType="Table" ShowCustomInfoSection="Right" CustomInfoClass="custom"
                    CustomInfoStyle=" clear:both;" ShowPageIndexBox="Always" SubmitButtonImageUrl="../Images/go.png"
                    ShowPageIndex="true" PageIndexBoxType="TextBox" CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条"
                    OnPageChanging="pagerUntransfered_PageChanging" AlwaysShow="false">
                </ep:AspNetPager>
            </div>
        </div>
        <div title="已移交条目" style="overflow: visible;">
            <div style="overflow: hidden;">
                <h3>
                    已移交条目</h3>
                <ep:EPGridView ID="gv_Archive_do" DataKeyNames="DATAID" runat="server" Width="100%"
                 ShowCheckBox="true"    OnRowDataBound="gr_Archive_do_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="DATAID" HeaderStyle-Width="2%" ItemStyle-HorizontalAlign="Center" /> 
                        <asp:BoundField HeaderText="临时序号" DataField="TEMPORDERNUM" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="提交人" DataField="CREATEUSERID" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="题名" DataField="TITLE" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Left" />
                        <asp:BoundField HeaderText="责任者" DataField="PUBLISHER" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="文件日期" DataField="PUBLISHTIME" DataFormatString="{0:yyyy-MM-dd}"
                            HtmlEncode="false" HeaderStyle-Width="10%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="密级" DataField="F_SECURITYTYPE" HeaderStyle-Width="7%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="正本数量" DataField="MAINBODYNUM" HeaderStyle-Width="10%"
                            ItemStyle-HorizontalAlign="Center" />
                    </Columns>
                </ep:EPGridView>
                <ep:AspNetPager SubmitButtonText=" GO " ID="pagerdo" Height="26px"    Width="100%" CssClass="yahoo2" runat="server"
                    PageSize="10" LayoutType="Table" ShowCustomInfoSection="Right" CustomInfoClass="custom"
                    CustomInfoStyle=" clear:both;" ShowPageIndexBox="Always" SubmitButtonImageUrl="../Images/go.png"
                    ShowPageIndex="true" PageIndexBoxType="TextBox" CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条"
                    OnPageChanging="pagerTransfered_PageChanging" AlwaysShow="false">
                </ep:AspNetPager>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="archiveTypeId" runat="server" />
    <asp:HiddenField ID="hiddenCurrentFlowName" runat="server" Value="移交" />
    <asp:HiddenField ID="hiddenStatusName" runat="server" Value="录入中" />
</asp:Content>
